package com.young.common.model;


import java.util.Date;

/**
 * 数据库对象基类
 *
 * @author wangjy
 * @date 2021/10/28 23:14:22
 */
public class BaseDO extends DbSortDO {
    /**
     * 顺序
     */
    private Long dataSequence;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建时间2, 根据创建时间查询时作为结束时间用
     */
    private Date createTime2;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 更新时间2, 根据更新时间查询时作为结束时间用
     */
    private Date updateTime2;
    /**
     * 创建人id
     */
    private String createUserId;
    /**
     * 创建人名字
     */
    private String createUserName;
    /**
     * 更新人id
     */
    private String updateUserId;
    /**
     * 更新人名字
     */
    private String updateUserName;
    /**
     * 数据版本
     */
    private Long dataVersion;
    /**
     * 删除标识,0正常,1删除
     */
    private Integer trashFlag;

    /**
     * 返回所有字段名(不包含带2的时间)
     *
     * @return
     */
    public static String[] allField() {
        return new String[]{"dataSequence", "createTime", "updateTime", "createUserId", "createUserName",
                "updateUserId", "updateUserName", "dataVersion", "trashFlag",
                "orderBy", "orderType"};
    }


    public Long getDataSequence() {
        return dataSequence;
    }

    public void setDataSequence(Long dataSequence) {
        this.dataSequence = dataSequence;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getCreateTime2() {
        return createTime2;
    }

    public void setCreateTime2(Date createTime2) {
        this.createTime2 = createTime2;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getUpdateTime2() {
        return updateTime2;
    }

    public void setUpdateTime2(Date updateTime2) {
        this.updateTime2 = updateTime2;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }

    public Long getDataVersion() {
        return dataVersion;
    }

    public void setDataVersion(Long dataVersion) {
        this.dataVersion = dataVersion;
    }

    public Integer getTrashFlag() {
        return trashFlag;
    }

    public void setTrashFlag(Integer trashFlag) {
        this.trashFlag = trashFlag;
    }
}
